package com.xjj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.xjj.excel.ExcelImport;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author : 王泰元
 * @date : 2022/10/19 18:45
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xjj_manager")
public class Manager {
    // id
    @TableId(type = IdType.AUTO)
    private Integer id;

    // 账号
    @TableField("account")
    @ExcelImport("账号")
    private String account;

    // 密码
    @TableField("password")
    @ExcelImport("密码")
    private String password;

    // 角色 id
    @TableField("role_id")
    private Integer roleId;

    // 账号状态
    @TableField("status")
    @ExcelImport("账号状态")
    private String status;

    // 教师工号
    @TableField("tid")
    @ExcelImport(value = "教师工号", maxLength = 10)
    private String tid;

    // 所负责科目
    @TableField("subject")
    @ExcelImport("学科")
    private String subject;

    // 姓名
    @TableField("name")
    @ExcelImport("姓名")
    private String name;


    @TableField(exist = false)
    private String roleName;
}
